Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface Microsoft.​AspNetCore.​Authentication.​IDataSerializer<​TModel>

Assembly: Microsoft.AspNetCore.Authentication

Contract for serialzing authentication data.

Methods

byte[]
Serialize​(TModel model)
Serializes the specified <paramref name="model" /> .
Returns The serialized data.
model The value to serialize.
TModel
Deserialize​(byte[] data)
Deserializes the specified <paramref name="data" /> as an instance of type <typeparamref name="TModel" /> .
Returns The model.
data The bytes being deserialized.